package com.erp.erp_mask.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import lombok.Data;

/**
 * @TableName t_purchase
 */
@TableName(value = "t_purchase")
@Data
public class TPurchase implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer chaseId;

    /**
     *
     */
    private String chaseName;

    /**
     *
     */
    private Integer chasePrice;

    /**
     *
     */
    private Integer chaseNumber;

    /**
     *
     */
    private Integer chaseUserId;

    /**
     *
     */
    private String chaseType;

    /**
     *
     */
    private Integer chaseRepertory;

    /**
     *
     */
    private Integer chaseCount;

    /**
     *
     */
    private String chaseState;

    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonDeserialize(using = LocalDateDeserializer.class)
    private LocalDate chaseDate;


    @TableField(exist = false)
    private String Name;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}